package com.guodu.entity;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ViewMaterialChukuId entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="VIEW_MATERIAL_CHUKU")
public class ViewMaterialChuku implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;
	private String year;
	private String month;
	private Long funitsId;
	private Long unitsId;
	private BigDecimal monthMoney;
	private BigDecimal yearMoney;
	private BigDecimal monthJianxiuMoney;
	private BigDecimal yearJianxiuMoney;
	private BigDecimal monthJigaiMoney;
	private BigDecimal yearJigaiMoney;
	private BigDecimal monthWeihuMoney;
	private BigDecimal yearWeihuMoney;
	private BigDecimal monthOtherMoney;
	private BigDecimal yearOtherMoney;


	@Id
	@Column(name = "ID", precision = 22, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "YEAR", length = 4)
	public String getYear() {
		return this.year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	@Column(name = "MONTH", length = 2)
	public String getMonth() {
		return this.month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	@Column(name = "FUNITS_ID", precision = 22)
	public Long getFunitsId() {
		return this.funitsId;
	}

	public void setFunitsId(Long funitsId) {
		this.funitsId = funitsId;
	}

	@Column(name = "UNITS_ID", precision = 20)
	public Long getUnitsId() {
		return this.unitsId;
	}

	public void setUnitsId(Long unitsId) {
		this.unitsId = unitsId;
	}

	@Column(name = "MONTH_MONEY", precision = 22, scale = 0)
	public BigDecimal getMonthMoney() {
		return this.monthMoney;
	}

	public void setMonthMoney(BigDecimal monthMoney) {
		this.monthMoney = monthMoney;
	}

	@Column(name = "YEAR_MONEY", precision = 22, scale = 0)
	public BigDecimal getYearMoney() {
		return this.yearMoney;
	}

	public void setYearMoney(BigDecimal yearMoney) {
		this.yearMoney = yearMoney;
	}

	@Column(name = "MONTH_JIANXIU_MONEY", precision = 22, scale = 0)
	public BigDecimal getMonthJianxiuMoney() {
		return this.monthJianxiuMoney;
	}

	public void setMonthJianxiuMoney(BigDecimal monthJianxiuMoney) {
		this.monthJianxiuMoney = monthJianxiuMoney;
	}

	@Column(name = "YEAR_JIANXIU_MONEY", precision = 22, scale = 0)
	public BigDecimal getYearJianxiuMoney() {
		return this.yearJianxiuMoney;
	}

	public void setYearJianxiuMoney(BigDecimal yearJianxiuMoney) {
		this.yearJianxiuMoney = yearJianxiuMoney;
	}

	@Column(name = "MONTH_JIGAI_MONEY", precision = 22, scale = 0)
	public BigDecimal getMonthJigaiMoney() {
		return this.monthJigaiMoney;
	}

	public void setMonthJigaiMoney(BigDecimal monthJigaiMoney) {
		this.monthJigaiMoney = monthJigaiMoney;
	}

	@Column(name = "YEAR_JIGAI_MONEY", precision = 22, scale = 0)
	public BigDecimal getYearJigaiMoney() {
		return this.yearJigaiMoney;
	}

	public void setYearJigaiMoney(BigDecimal yearJigaiMoney) {
		this.yearJigaiMoney = yearJigaiMoney;
	}

	@Column(name = "MONTH_WEIHU_MONEY", precision = 22, scale = 0)
	public BigDecimal getMonthWeihuMoney() {
		return this.monthWeihuMoney;
	}

	public void setMonthWeihuMoney(BigDecimal monthWeihuMoney) {
		this.monthWeihuMoney = monthWeihuMoney;
	}

	@Column(name = "YEAR_WEIHU_MONEY", precision = 22, scale = 0)
	public BigDecimal getYearWeihuMoney() {
		return this.yearWeihuMoney;
	}

	public void setYearWeihuMoney(BigDecimal yearWeihuMoney) {
		this.yearWeihuMoney = yearWeihuMoney;
	}

	@Column(name = "MONTH_OTHER_MONEY", precision = 22, scale = 0)
	public BigDecimal getMonthOtherMoney() {
		return this.monthOtherMoney;
	}

	public void setMonthOtherMoney(BigDecimal monthOtherMoney) {
		this.monthOtherMoney = monthOtherMoney;
	}

	@Column(name = "YEAR_OTHER_MONEY", precision = 22, scale = 0)
	public BigDecimal getYearOtherMoney() {
		return this.yearOtherMoney;
	}

	public void setYearOtherMoney(BigDecimal yearOtherMoney) {
		this.yearOtherMoney = yearOtherMoney;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ViewMaterialChuku))
			return false;
		ViewMaterialChuku castOther = (ViewMaterialChuku) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getYear() == castOther.getYear()) || (this.getYear() != null
						&& castOther.getYear() != null && this.getYear()
						.equals(castOther.getYear())))
				&& ((this.getMonth() == castOther.getMonth()) || (this
						.getMonth() != null && castOther.getMonth() != null && this
						.getMonth().equals(castOther.getMonth())))
				&& ((this.getFunitsId() == castOther.getFunitsId()) || (this
						.getFunitsId() != null
						&& castOther.getFunitsId() != null && this
						.getFunitsId().equals(castOther.getFunitsId())))
				&& ((this.getUnitsId() == castOther.getUnitsId()) || (this
						.getUnitsId() != null && castOther.getUnitsId() != null && this
						.getUnitsId().equals(castOther.getUnitsId())))
				&& ((this.getMonthMoney() == castOther.getMonthMoney()) || (this
						.getMonthMoney() != null
						&& castOther.getMonthMoney() != null && this
						.getMonthMoney().equals(castOther.getMonthMoney())))
				&& ((this.getYearMoney() == castOther.getYearMoney()) || (this
						.getYearMoney() != null
						&& castOther.getYearMoney() != null && this
						.getYearMoney().equals(castOther.getYearMoney())))
				&& ((this.getMonthJianxiuMoney() == castOther
						.getMonthJianxiuMoney()) || (this
						.getMonthJianxiuMoney() != null
						&& castOther.getMonthJianxiuMoney() != null && this
						.getMonthJianxiuMoney().equals(
								castOther.getMonthJianxiuMoney())))
				&& ((this.getYearJianxiuMoney() == castOther
						.getYearJianxiuMoney()) || (this.getYearJianxiuMoney() != null
						&& castOther.getYearJianxiuMoney() != null && this
						.getYearJianxiuMoney().equals(
								castOther.getYearJianxiuMoney())))
				&& ((this.getMonthJigaiMoney() == castOther
						.getMonthJigaiMoney()) || (this.getMonthJigaiMoney() != null
						&& castOther.getMonthJigaiMoney() != null && this
						.getMonthJigaiMoney().equals(
								castOther.getMonthJigaiMoney())))
				&& ((this.getYearJigaiMoney() == castOther.getYearJigaiMoney()) || (this
						.getYearJigaiMoney() != null
						&& castOther.getYearJigaiMoney() != null && this
						.getYearJigaiMoney().equals(
								castOther.getYearJigaiMoney())))
				&& ((this.getMonthWeihuMoney() == castOther
						.getMonthWeihuMoney()) || (this.getMonthWeihuMoney() != null
						&& castOther.getMonthWeihuMoney() != null && this
						.getMonthWeihuMoney().equals(
								castOther.getMonthWeihuMoney())))
				&& ((this.getYearWeihuMoney() == castOther.getYearWeihuMoney()) || (this
						.getYearWeihuMoney() != null
						&& castOther.getYearWeihuMoney() != null && this
						.getYearWeihuMoney().equals(
								castOther.getYearWeihuMoney())))
				&& ((this.getMonthOtherMoney() == castOther
						.getMonthOtherMoney()) || (this.getMonthOtherMoney() != null
						&& castOther.getMonthOtherMoney() != null && this
						.getMonthOtherMoney().equals(
								castOther.getMonthOtherMoney())))
				&& ((this.getYearOtherMoney() == castOther.getYearOtherMoney()) || (this
						.getYearOtherMoney() != null
						&& castOther.getYearOtherMoney() != null && this
						.getYearOtherMoney().equals(
								castOther.getYearOtherMoney())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getYear() == null ? 0 : this.getYear().hashCode());
		result = 37 * result
				+ (getMonth() == null ? 0 : this.getMonth().hashCode());
		result = 37 * result
				+ (getFunitsId() == null ? 0 : this.getFunitsId().hashCode());
		result = 37 * result
				+ (getUnitsId() == null ? 0 : this.getUnitsId().hashCode());
		result = 37
				* result
				+ (getMonthMoney() == null ? 0 : this.getMonthMoney()
						.hashCode());
		result = 37 * result
				+ (getYearMoney() == null ? 0 : this.getYearMoney().hashCode());
		result = 37
				* result
				+ (getMonthJianxiuMoney() == null ? 0 : this
						.getMonthJianxiuMoney().hashCode());
		result = 37
				* result
				+ (getYearJianxiuMoney() == null ? 0 : this
						.getYearJianxiuMoney().hashCode());
		result = 37
				* result
				+ (getMonthJigaiMoney() == null ? 0 : this.getMonthJigaiMoney()
						.hashCode());
		result = 37
				* result
				+ (getYearJigaiMoney() == null ? 0 : this.getYearJigaiMoney()
						.hashCode());
		result = 37
				* result
				+ (getMonthWeihuMoney() == null ? 0 : this.getMonthWeihuMoney()
						.hashCode());
		result = 37
				* result
				+ (getYearWeihuMoney() == null ? 0 : this.getYearWeihuMoney()
						.hashCode());
		result = 37
				* result
				+ (getMonthOtherMoney() == null ? 0 : this.getMonthOtherMoney()
						.hashCode());
		result = 37
				* result
				+ (getYearOtherMoney() == null ? 0 : this.getYearOtherMoney()
						.hashCode());
		return result;
	}

}